﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _020
{
    internal class Program
    {
        static void Main(string[] args)
        {

            for (int i=1;i<=9;i++)
            {
                Console.Write("{0},",i);
            }
            for(int i=0;i<=100;i++)
            {
                Console.Write("{0},",i);
            }
            Console.WriteLine();
            for(int i=1;i<=9;i++)
            {
                for(int k=1;k<=i;k++)
                {
                    Console.Write("{0}x{1}\t", k, i, i * k);
                }
                Console.WriteLine();
            }
            for(; ; )
            { 
                Console.WriteLine("I love C#");
                break;
            }
            int j = 123456789;
            float f = 11.23f;
            Console.WriteLine("{0:C}",j);//货币形式
            Console.WriteLine("{0:D}",j);//十进制形式
            Console.WriteLine("{0:E}",j);//科学计数法
            Console.WriteLine("{0:F}",j);//浮点类型表示法
            Console.WriteLine("{0:G}",j);//常用格式
            Console.WriteLine("{0:N}",j);//用逗号分隔千位的数字
            Console.WriteLine("{0:P}",j);//百分符号格式
            Console.ReadKey();
        }
    }
}
